package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SupervisorMapper;
import com.ruoyi.system.domain.Supervisor;
import com.ruoyi.system.service.ISupervisorService;

/**
 * 营业线施工Service业务层处理
 * 
 * @author WEI&WU
 * @date 2024-05-25
 */
@Service
public class SupervisorServiceImpl implements ISupervisorService 
{
    @Autowired
    private SupervisorMapper supervisorMapper;

    /**
     * 查询营业线施工
     * 
     * @param certificateId 营业线施工主键
     * @return 营业线施工
     */
    @Override
    public Supervisor selectSupervisorByCertificateId(String certificateId)
    {
        return supervisorMapper.selectSupervisorByCertificateId(certificateId);
    }

    /**
     * 查询营业线施工列表
     * 
     * @param supervisor 营业线施工
     * @return 营业线施工
     */
    @Override
    public List<Supervisor> selectSupervisorList(Supervisor supervisor)
    {
        return supervisorMapper.selectSupervisorList(supervisor);
    }

    /**
     * 新增营业线施工
     * 
     * @param supervisor 营业线施工
     * @return 结果
     */
    @Override
    public int insertSupervisor(Supervisor supervisor)
    {
        return supervisorMapper.insertSupervisor(supervisor);
    }

    /**
     * 修改营业线施工
     * 
     * @param supervisor 营业线施工
     * @return 结果
     */
    @Override
    public int updateSupervisor(Supervisor supervisor)
    {
        return supervisorMapper.updateSupervisor(supervisor);
    }

    /**
     * 批量删除营业线施工
     * 
     * @param certificateIds 需要删除的营业线施工主键
     * @return 结果
     */
    @Override
    public int deleteSupervisorByCertificateIds(String[] certificateIds)
    {
        return supervisorMapper.deleteSupervisorByCertificateIds(certificateIds);
    }

    /**
     * 删除营业线施工信息
     * 
     * @param certificateId 营业线施工主键
     * @return 结果
     */
    @Override
    public int deleteSupervisorByCertificateId(String certificateId)
    {
        return supervisorMapper.deleteSupervisorByCertificateId(certificateId);
    }
}
